package com.firemoss.magicbus.frameworks.swiz
{
	import com.firemoss.magicbus.rpc.Service;
	
	import flash.events.IEventDispatcher;
	
	public class SwizService extends Service
	{
		private var swizEventMediator : SwizMessagingEventMediator

		[Dispatcher]
		public function set dispatcher( dispatcher:IEventDispatcher) : void
		{
			swizEventMediator.dispatcher = dispatcher
		}
		public function get dispatcher() : IEventDispatcher
		{
			return swizEventMediator.dispatcher
		}
		
		public function SwizService(destination:String=null)
		{
			super(destination);
			
			swizEventMediator = new SwizMessagingEventMediator()
			eventMediator = swizEventMediator
		}
		
	}
}